using System.Data.Entity;
using System.Data.Entity.Infrastructure;
using teste.Models.Mapping;

namespace teste.Models
{
    public partial class LMContext : DbContext
    {
        static LMContext()
        {
            Database.SetInitializer<LMContext>(null);
        }

        public LMContext()
            : base("Name=LMContext")
        {
        }

        public DbSet<CLIENTE> CLIENTEs { get; set; }
        public DbSet<DEPENDENTE> DEPENDENTEs { get; set; }
        public DbSet<ENDERECO> ENDERECOes { get; set; }
        public DbSet<GARAGEM> GARAGEMs { get; set; }
        public DbSet<ItemTabelaDePreco> ItemTabelaDePrecoes { get; set; }
        public DbSet<Locacao> Locacaos { get; set; }
        public DbSet<MARCA> MARCAs { get; set; }
        public DbSet<MODELO> MODELOes { get; set; }
        public DbSet<OPERADOR> OPERADORs { get; set; }
        public DbSet<TABELADEPRECO> TABELADEPRECOes { get; set; }
        public DbSet<TELEFONE> TELEFONEs { get; set; }
        public DbSet<TesteLoc> TesteLocs { get; set; }
        public DbSet<TIPODEVEICULO> TIPODEVEICULOes { get; set; }
        public DbSet<VAGA> VAGAs { get; set; }
        public DbSet<VEICULO> VEICULOes { get; set; }

        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Configurations.Add(new CLIENTEMap());
            modelBuilder.Configurations.Add(new DEPENDENTEMap());
            modelBuilder.Configurations.Add(new ENDERECOMap());
            modelBuilder.Configurations.Add(new GARAGEMMap());
            modelBuilder.Configurations.Add(new ItemTabelaDePrecoMap());
            modelBuilder.Configurations.Add(new LocacaoMap());
            modelBuilder.Configurations.Add(new MARCAMap());
            modelBuilder.Configurations.Add(new MODELOMap());
            modelBuilder.Configurations.Add(new OPERADORMap());
            modelBuilder.Configurations.Add(new TABELADEPRECOMap());
            modelBuilder.Configurations.Add(new TELEFONEMap());
            modelBuilder.Configurations.Add(new TesteLocMap());
            modelBuilder.Configurations.Add(new TIPODEVEICULOMap());
            modelBuilder.Configurations.Add(new VAGAMap());
            modelBuilder.Configurations.Add(new VEICULOMap());
        }
    }
}
